<%@ Page Language="C#" AutoEventWireup="true" Inherits="WebControls_Selector" Codebehind="Selector.aspx.cs" %>

<%@ Register Assembly="Pampa.WebControls" Namespace="Pampa.WebControls" TagPrefix="cc1" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <link href="../../Css/Layout.css" rel="stylesheet" type="text/css"/>        
    <script type="text/javascript">
    
    function getItems(selectorId, value, maxtam)
    {
        var response = WebControls_Selector.GetList(value);
        var doc = response.request.responseXML;
		Selector_Fill(selectorId, doc);       
	}

    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <span class="title">Selectors</span>
        <br />
        <br />
        Pampa.WebControls has this special control wich allow you to pick an item from a big list of them.
        Using AJAX it is possible to get a sub set of the list writing a part of the description of the item you want to find out without the need of pass all these items to the client side.<br />
        <br />
        <cc1:Selector ID="Selector1" runat="server" DataHandler="getItems" Height="22px" Width="202px"/>
        <br />
        <br />          
        Like with the previous controls, you could manipulate the selector from the client side. To do that just check all the public available functions
        in <a href="/Pampa.Web/Resources/Pampa.WebControls/Selector.js">Selector.js</a> 
        <br />          
    </div>
    </form>
</body>
</html>
